package com.dream.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 * 学期计划的标签表
 * @author Administrator
 *
 */
@Entity
@Table(name="sys_learnplant_lable")
public class Sys_LearnPlant_Lable extends AllId implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private Sys_LearnPlant sys_LearnPlant;
	
	private Sys_Lable sys_Lable;

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_LearnPlant getSys_LearnPlant()
	{
		return sys_LearnPlant;
	}

	public void setSys_LearnPlant(Sys_LearnPlant sys_LearnPlant)
	{
		this.sys_LearnPlant = sys_LearnPlant;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_Lable getSys_Lable()
	{
		return sys_Lable;
	}

	public void setSys_Lable(Sys_Lable sys_Lable)
	{
		this.sys_Lable = sys_Lable;
	}
	 
}
